<ion-header>
  <ion-navbar>
    <ion-buttons>
      <button ion-button (click)="closeModal()">关闭</button>
    </ion-buttons>
    <ion-title>选择行业信息</ion-title>
    <ion-buttons end>
      <button ion-button (click)="completeModal()">完成</button>
    </ion-buttons>
  </ion-navbar>
  <!--<ion-toolbar no-border-top>-->
    <!--<ion-searchbar [(ngModel)]="keyWord" (ionInput)="updateList()" placeholder="输入地点关键字搜索">-->
    <!--</ion-searchbar>-->
  <!--</ion-toolbar>-->
  <ion-row class='flow-list-searchbar'>
    <ion-col col-10>
      <ion-toolbar no-border-top>
        <ion-searchbar [(ngModel)]="keyWord" color="light" placeholder="请输入行业代码进行搜索">
        </ion-searchbar>
      </ion-toolbar>
    </ion-col>
    <ion-col col-2>
      <button ion-button class="search-button" (click)="search()">查询</button>
    </ion-col>
  </ion-row>
</ion-header>
<ion-content>
  <ion-refresher (ionRefresh)="doRefresh($event)">
    <ion-refresher-content pullingText="下拉刷新" refreshingText="加载中...">
    </ion-refresher-content>
  </ion-refresher>
  <ion-list *ngIf="!isNoMoreData && dataList && dataList.length > 0">
    <ion-item *ngFor="let data of dataList">
      <ion-label>
        <ion-row (click)="selectItem(data)">
          <ion-col col-4>
            {{data.entry.industry_code_level2}}
          </ion-col>
          <ion-col col-8>
            {{data.entry.industry_name_level2}}
          </ion-col>
        </ion-row>
      </ion-label>
      <ion-checkbox [(ngModel)]="data.selected"></ion-checkbox>
      <!--<ion-radio value="data.SECURITIESID" (ionSelect)="radioSelected(data)"></ion-radio>-->
    </ion-item>
  </ion-list>
  <ion-item-divider class='list-no-more-tips' color="light" [hidden]="isLoadMore">暂无更多数据...</ion-item-divider>
  <ion-infinite-scroll (ionInfinite)="doInfinite($event)">
    <ion-infinite-scroll-content loadingSpinner="bubbles" loadingText="加载更多数据...">
    </ion-infinite-scroll-content>
  </ion-infinite-scroll>
</ion-content>
